package com.zhao.dota.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zhao.dota.model.Permission;

import java.util.List;

public interface PermissionService extends IService<Permission> {

    List<Permission> tree();

    List<Permission> treeByRole(Integer roleId);

    List<Permission> rolePermissions(Integer roleId);

    int saveRolePermissions(Integer roleId, Integer[] permissions);
}
